<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    <title>POS收单运营管理平台</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="<s:url value="/css/common.css"/>" type="text/css"	rel="stylesheet" />
	<script type="text/javascript" src="<c:url value="/js/jquery-1.3.2.js" />"></script>   
	<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
	<script language="javascript" type="text/javascript" src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	

  <script type="text/javascript">
  
$(document).ready(function(){

	$("#modifyBtn").click(function(){
	   if($(":checkbox[name=modifyFlag]").attr('checked')){
	   	
		 
	  	if($("#newp").val() != $("#pwd").val()){
	  		alert("新密码两次输入不一致");
	  		return false;
	  	}
	  	
	  	if($("#newp").val() =="" || $("#pwd").val()=="" || $("#newp").val()==""){
	  		alert("密码不能为空");
	  		return false;
	  	}
  	  }
  	  
  	return true;
	});
	
});

</script>
  </head>
  
<body>
	<c:if test="${not empty requestScope.msg}">
    	<script>alert("<c:out value="${requestScope.msg}"/>")</script>
	</c:if>
    
    <div class="subpage">
   	<s:form action="/mSubmit.ct" method="post"  theme="simple">
	   	<s:hidden name="merchant.id"></s:hidden>
	   	<s:hidden name="modifyFlag" id="modifyFlag" value="1"></s:hidden>
	   		
	<table width="100%" class="tb" >
	
		<tr class="tb-line">
			<td class="tb-td" colspan="6">
				<div class="tb-h2">POS收单运营管理平台</div>
			</td>
		</tr>
		<tr class="tb-line bg-gray">
			<td class="tb-td" colspan="4"><div class="tb-h3">密码修改</div></td>
		</tr>
		<tr class="tb-line">
			<td align="right" class="tb-td" style="width:110px;">
				<div class="tb-h4">账号:</div>
			</td>
			<td class="tb-td" >
				<label class="tb-input-lengthen">
					<s:property value="#session.session_merchant.accountNo"/>
				</label>
			</td>
			<td align="right" class="tb-td" style="width:110px;">
				<div class="tb-h4">姓名:</div>
			</td>
			<td class="tb-td" >
				<label class="tb-input-lengthen">
					<s:property value="#session.session_merchant.realName"/>
				</label>
			</td>
		</tr>
		<tr class="tb-line">
			<td align="right" class="tb-td" style="width:110px;">
				<div class="tb-h4">手机号:</div>
			</td>
			<td class="tb-td" >
				<label class="tb-input-lengthen">
					<s:property value="#session.session_merchant.mobile"/>
				</label>
			</td>
			<td align="right" class="tb-td" style="width:110px;">
				<div class="tb-h4">证件号:</div>
			</td>
			<td class="tb-td" >
				<label class="tb-input-lengthen">
					<s:property value="#session.session_merchant.cardNo"/>
				</label>
			</td>
		</tr>
	</table>
		<div id="div_pwd" style="{display: none;}">
			<table width="100%" class="tb" >
				<tr class="tb-line">
					<td align="right" class="tb-td" style="width:110px;">
						<div class="tb-h4">原密码：</div>
					</td>
					<td class="tb-td" colspan="3" >
						<label class="tb-input-lengthen">
							<s:password cssClass="queryWidth" name="passWord" maxlength="16"></s:password>
						</label>
						<font color="red">*</font>
					</td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td" style="width:110px;">
						<div class="tb-h4">新密码：</div>
					</td>
					<td class="tb-td" colspan="3" >
						<label class="tb-input-lengthen">
							<s:password cssClass="queryWidth" id="newp" name="newPassWord" maxlength="16"></s:password>
						</label>
						<font color="red">*</font>
					</td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td" style="width:110px;">
						<div class="tb-h4">确认密码：</div>
					</td>
					<td class="tb-td" colspan="3" >
						<label class="tb-input-lengthen">
							<s:password cssClass="queryWidth" id="pwd" name="rePassWord" maxlength="16"></s:password>
						</label>
						<font color="red">*</font>
					</td>
				</tr>
				<tr class="tb-line">
					<td class="tb-td line-submit" align="center" colspan="4">
						<label class="tb-input-submit">
							<s:submit value="修   改"  id="modifyBtn" ></s:submit>
						</label>
						<label class="tb-input-submit">
							<s:reset value="取  消"></s:reset>
						</label>
					</td>
				</tr>
			</table>
		</div>
    </s:form>
    </div>
   
  </body>
</html>
